package dv.network;

import java.math.BigInteger;

public class Rule {
    private BigInteger key;
    private int prefixLen;
    private Port outPort;
    private int match; // in bdd format
    private int hit;

    public int getMatch() {
        return match;
    }

    public void setMatch(int match) {
        this.match = match;
    }

    public int getHit() {
        return hit;
    }

    public void setHit(int hit) {
        this.hit = hit;
    }

    public BigInteger getKey() {
        return key;
    }

    public int getPrefixLen() {
        return prefixLen;
    }

    public Port getOutPort() {
        return outPort;
    }

    public Rule(BigInteger key, int prefixLen, Port outPort) {
        this.key = key;
        this.prefixLen = prefixLen;
        this.outPort = outPort;
    }
}
